package Dementia;


	import java.util.ArrayList;
	import java.util.Collection;

	public class Diagnosis {

		public Collection<String> diagnosis;
		
		public Diagnosis(){
			this.diagnosis = new ArrayList<String>();
		}
		
		public Diagnosis(Collection<String> diagnosis){ 
			this.diagnosis=diagnosis;
		}
		public Collection<String> getDiagnosis() {
			return diagnosis;
		}
		
		public void setDiagnosis(Collection<String> diagnosis) {
		    this.diagnosis = diagnosis;
		}
		
		public boolean inDiagnosis(String diagnosis) {
			if (diagnosis.contains(diagnosis))
				return true;		
			return false;
		}
		
	
		
		public void addToDiagnosis(String diagnose) {
			diagnosis.add(diagnose);
			
		}
		public String toString() {
			return diagnosis+",";
		}
}


